package org.mj.im.common.model;

public class IMSendResult <T> extends TopicMessage{
    private IMUserInfo sender;
    private IMUserInfo receiver;
    private int code;
    private T data;

    public IMSendResult(IMUserInfo sender, IMUserInfo receiver, int code, T data) {
        this.sender = sender;
        this.receiver = receiver;
        this.code = code;
        this.data = data;
    }

    public IMSendResult() {
    }

    public IMUserInfo getSender() {
        return sender;
    }

    public void setSender(IMUserInfo sender) {
        this.sender = sender;
    }

    public IMUserInfo getReceiver() {
        return receiver;
    }

    public void setReceiver(IMUserInfo receiver) {
        this.receiver = receiver;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
